package com.ruiysoft.controller.mdse.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.Objects;

/**
 * SkuPhoto
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-11-26T22:29:24.816+08:00")

public class SkuPhoto   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("photoUrl")
  private String photoUrl = null;

  @JsonProperty("delFlag")
  private Integer delFlag = null;

  @JsonProperty("sort")
  private Integer sort = null;

  public SkuPhoto id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public SkuPhoto photoUrl(String photoUrl) {
    this.photoUrl = photoUrl;
    return this;
  }

  /**
   * 图片url
   * @return photoUrl
  **/
  @ApiModelProperty(example = "http://c.hiphotos.baidu.com/image/pic/item/b2de9c82d158ccbffea08a4c14d8bc3eb13541a3.jpg", required = true, value = "图片url")
  @NotNull


  public String getPhotoUrl() {
    return photoUrl;
  }

  public void setPhotoUrl(String photoUrl) {
    this.photoUrl = photoUrl;
  }

  public SkuPhoto delFlag(Integer delFlag) {
    this.delFlag = delFlag;
    return this;
  }

  /**
   * 删除状态（0，已删除，1，未删除）
   * @return delFlag
  **/
  @ApiModelProperty(value = "删除状态（0，已删除，1，未删除）")


  public Integer getDelFlag() {
    return delFlag;
  }

  public void setDelFlag(Integer delFlag) {
    this.delFlag = delFlag;
  }

  public SkuPhoto sort(Integer sort) {
    this.sort = sort;
    return this;
  }

  /**
   * 图片显示顺序，大数在前
   * @return sort
  **/
  @ApiModelProperty(required = true, value = "图片显示顺序，大数在前")
  @NotNull


  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SkuPhoto skuPhoto = (SkuPhoto) o;
    return Objects.equals(this.id, skuPhoto.id) &&
        Objects.equals(this.photoUrl, skuPhoto.photoUrl) &&
        Objects.equals(this.delFlag, skuPhoto.delFlag) &&
        Objects.equals(this.sort, skuPhoto.sort);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, photoUrl, delFlag, sort);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SkuPhoto {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    photoUrl: ").append(toIndentedString(photoUrl)).append("\n");
    sb.append("    delFlag: ").append(toIndentedString(delFlag)).append("\n");
    sb.append("    sort: ").append(toIndentedString(sort)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

